package com.panfeng.xcloud.boss.provider.member.dao.mapper;

import com.panfeng.xcloud.boss.provider.member.dto.request.AttentionPageReqDTO;
import com.panfeng.xcloud.boss.provider.member.dto.response.UserAttentionItemDTO;
import com.panfeng.xcloud.dao.member.entity.UserAttention;
import com.panfeng.xcloud.dao.member.mapper.UserAttentionMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserAttentionMapperExt extends UserAttentionMapper {

    Long queryFansListPageCount(AttentionPageReqDTO attentionPageReqDTO);

    List<UserAttentionItemDTO> queryFansListPage(AttentionPageReqDTO attentionPageReqDTO);

    Long queryFollowListPageCount(AttentionPageReqDTO attentionPageReqDTO);

    List<UserAttentionItemDTO> queryFollowListPage(AttentionPageReqDTO attentionPageReqDTO);

    int cancelAttention(@Param("userId")String userId, @Param("attentionUserId")String attentionUserId);

    List<UserAttention> queryFollowList(String userId);

    List<UserAttention> queryFansList(String userId);

    int queryFollowCount(String userId);

    int queryFansCount(String userId);

    int queryIfFollow(@Param("userId")String userId, @Param("attentionUserId")String attentionUserId);

    UserAttention queryIfFollowInfo(@Param("userId")String userId, @Param("attentionUserId")String attentionUserId);
}